package wschat.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.web.socket.messaging.SessionConnectEvent;

/**
 * Created by alex on 15-1-24.
 */
public class StartConnectionListener implements ApplicationListener<SessionConnectEvent> {

    public static final Logger log = LoggerFactory.getLogger(StartConnectionListener.class);
    
    @Override
    public void onApplicationEvent(SessionConnectEvent event) {
        log.error(event.getSource().toString());
        log.error(event.getMessage().getHeaders().toString());
    }
}
